/* Copyright (C) Abu Rizal, 2009.
 * 
 * This file is part of QurText.
 * 
 * QurText is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * QurText is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with QurText. If not, see <http://www.gnu.org/licenses/>.
 */
package qurtext.client;

import java.util.ArrayList;
import java.util.TreeMap;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface QurTextServiceAsync {
	void getAllChapterList(AsyncCallback<TreeMap<Integer,ClientChapter>> callback);
	void initChapterList(int start,AsyncCallback<Integer> callback);
	void getCurrentUser(String currentURL, AsyncCallback<ClientUser> callback);
	void getSectionVerseList(int chapter, int verse, int endVerse,
			AsyncCallback<TreeMap<Integer, ClientVerse>> callback);
	void initSectionVerses(int chapterNo, int verseNo,
			AsyncCallback<Void> callback);
	void getAllSectionList(AsyncCallback<ArrayList<ClientSection>> callback);
	void getBasmallah(AsyncCallback<ClientVerse> callback);
	void saveProgress(ClientUser profile, AsyncCallback<Void> callback);
	void initSectionLiterals(String start, AsyncCallback<String> callback);
	void initAllLiterals(String start, AsyncCallback<String> callback);
}
